package de.justphil.tcg.tcgserver.websockets;

import org.glassfish.grizzly.http.HttpRequestPacket;
import org.glassfish.grizzly.websockets.DefaultWebSocket;
import org.glassfish.grizzly.websockets.ProtocolHandler;
import org.glassfish.grizzly.websockets.WebSocketListener;
import org.slf4j.Logger;

import static de.justphil.tcg.tcgserver.commons.logging.TCGLogging.*;

public class TCGWebSocket extends DefaultWebSocket {
	private static final Logger log = logger(TCGWebSocket.class);
	
	//private volatile boolean connectionProblem;
	
	public TCGWebSocket(ProtocolHandler handler, HttpRequestPacket packet, WebSocketListener... listeners) {
		super(handler, packet, listeners);
		
		// TODO kill debug code
		log.info("New TCGWebSocket created!");
		log.info("Number of attached listeners: {}", listeners.length);
	}

	/*
	public boolean isConnectionProblem() {
		return connectionProblem;
	}

	public void setConnectionProblem(boolean connectionProblem) {
		this.connectionProblem = connectionProblem;
	}
	*/
}
